package com.jic.member.provider;

import com.jic.common.base.vo.RestResult;
import com.jic.member.provider.service.MemberUserProviderService;
import com.jic.member.request.LabelRequest;
import com.jic.member.request.MememberForMarket;
import com.jic.member.request.MememberUserForMarketRequest;
import com.jic.member.response.MememberUserForMarketResponse;
import com.jic.member.response.MememberUserResponse;
import com.jic.member.service.MememberUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MemberUserProviderServiceImpl implements MemberUserProviderService {
    @Autowired
    MememberUserService mememberUserService;


    @Override
    public List<MememberUserResponse> queryMemberByPhone(String phoneList) {
        return mememberUserService.queryMemberByPhone(phoneList);
    }

    /**
     * 根据标签查询用户
     *
     * @param labelRequest
     * @return
     */
    @Override
    public List<String> queryByLabelType(LabelRequest labelRequest) {
        return mememberUserService.queryByLabelType(labelRequest);
    }

    @Override
    public List<MememberUserForMarketResponse> listMemberUserInfoForMarket(MememberUserForMarketRequest request) {
        return mememberUserService.listMemberUserInfoForMarket(request).getData();
    }

    @Override
    public RestResult<List<String>> memberUserInfoForMarket(MememberForMarket request) {
        return mememberUserService.memberUserInfoForMarket(request);
    }
}
